	function downfiles($field, $value) {
		extract(string2array($this->fields[$field]['setting']));
		$list_str = array();
		$file_list = string2array($value);
		if(is_array($file_list)) {
			foreach($file_list as $_k=>$_v) {
				if($_v[fileurl]){
					$filename = $_v[filename] ? $_v[filename] : L('click_to_down');
					if($downloadlink) {
						$a_k = urlencode(sys_auth("i=$this->id&s=&m=1&f=$_v[fileurl]&d=$downloadtype&modelid=$this->modelid&catid=$this->catid", 'ENCODE', pc_base::load_config('system','auth_key')));
                    if($this->modelid==12)
                    {
                        if(logined()==1)
                        {
                            if(hasPayment($this->id))
                            {
                                $list_str[] = "<li><a href='".APP_PATH."index.php?m=content&c=down&a_k={$a_k}' target='_blank' class='title'>{$filename}</a><span class='download'><img src='images/ico_pdf.gif' alt=''/> <!--PDF (18k)--> <a href='".APP_PATH."index.php?m=content&c=down&a_k={$a_k}' target='_blank'>下载</a></span></li>";
                            }
                            else
                            {
                                $list_str[] = "<li><a class='title' onclick='checkPayment()'>{$filename}</a><span class='download'><img src='images/ico_pdf.gif' alt=''/> <!--PDF (18k)--> <a onclick='checkPayment()'>下载</a></span></li>";
                            }

                        }
                        elseif(logined()==-1)
                        {
                            $list_str[] = "<li><a class='title' onclick='checkLogin()'>{$filename}</a><span class='download'><img src='images/ico_pdf.gif' alt=''/> <!--PDF (18k)--> <a onclick='checkLogin()'>下载</a></span></li>";
                        }

                    }
                    else
                    {
                        $list_str[] = "<a href='".APP_PATH."index.php?m=content&c=down&a_k={$a_k}' target='_blank'>{$filename}</a>";
                    }

					} else {
						$list_str[] = "<a href='{$_v[fileurl]}' target='_blank'>{$filename}</a>";
					}
				}
			}
		}
		return $list_str;
	}
